package com.photoeditor.demo.model.face;

import android.text.TextUtils;

import com.common.base.ComponentContext;

public class FaceConstant {
    public static final String EXTRA_FROM = "EXTRA_FROM";//用作统计

    public static final String PATH_PHOTO = com.common.base.utils.FileUtil.getExternalCacheDir(ComponentContext.getContext(), "tempphoto", true);

    public static final String ACTION_FACE_AGING = "ACTION_FACE_AGING";
    public static final String ACTION_EXOTIC_BLEND = "ACTION_EXOTIC_BLEND";
    public static final String ACTION_GENDER_SWITCH = "ACTION_GENDER_SWITCH";
    public static final String ACTION_PAST_LIFE = "ACTION_PAST_LIFE";
    public static final String ACTION_FUTURE_BABY = "ACTION_FUTURE_BABY";

    private static String ASSET_PATH_MODEL_FEMALE = "model/model_female.png";
    private static String ASSET_PATH_MODEL_FEMALE_GENDER = "model/model_female_gender.png";
    private static String ASSET_PATH_MODEL_FEMALE_OLD30 = "model/model_female_old30.png";
    private static String ASSET_PATH_MODEL_FEMALE_OLD40 = "model/model_female_old40.png";
    private static String ASSET_PATH_MODEL_FEMALE_OLD50 = "model/model_female_old50.png";
    private static String ASSET_PATH_MODEL_PAST_LIFE = "model/model_female_past_life.png";

    public static String getFaceModelFemale() {
        return ASSET_PATH_MODEL_FEMALE;
    }

    public static boolean isModel(String path) {
        return isFemaleModel(path);
    }

    public static boolean isFemaleModel(String path) {
        return TextUtils.equals(path, ASSET_PATH_MODEL_FEMALE);
    }

    public static String getModleGengerMale(String path) {
        if (isFemaleModel(path)) {
            return ASSET_PATH_MODEL_FEMALE_GENDER;
        }
        return null;
    }

    public static String getModleGengerFeMale(String path) {
        if (isFemaleModel(path)) {
            return ASSET_PATH_MODEL_FEMALE;
        }
        return null;
    }


    public static String getModleOld30(String path) {
        if (isFemaleModel(path)) {
            return ASSET_PATH_MODEL_FEMALE_OLD30;
        }
        return null;
    }


    public static String getModleOld40(String path) {
        if (isFemaleModel(path)) {
            return ASSET_PATH_MODEL_FEMALE_OLD40;
        }
        return null;
    }


    public static String getModleOld50(String path) {
        if (isFemaleModel(path)) {
            return ASSET_PATH_MODEL_FEMALE_OLD50;
        }
        return null;
    }

    public static String getModelPastLife(String path) {
        if (isFemaleModel(path)) {
            return ASSET_PATH_MODEL_PAST_LIFE;
        }
        return null;
    }
}
